<template>
    <nuxt-link
        class="linker"
        :class="classes"
        v-bind="linkerProps"
        v-on="listeners"
    >
        <slot/>
    </nuxt-link>
</template>

<script>
import linkerMixin from '~/mixins/linker';

export default {
    name: 'Linker',
    mixins: [linkerMixin],
    data() {
        return {};
    },
    props: {
        to: {
            type: [String, Object],
            required: true,
        },
    },
};
</script>

<style>
a.linker {
    display: inline-block;
}
</style>
